package com.apisix.service.repository;

import com.apisix.service.entity.Service;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.Optional;

@Repository
public interface ServiceRepository extends JpaRepository<Service, Long> {
    Optional<Service> findByServiceId(String serviceId);
    boolean existsByServiceId(String serviceId);
} 